package com.re6g3y.game.mulitThread;

import com.re6g3y.game.mulitThread.Actions.NodeAction;

/**
 * MainAssigner的加入列表的最小事件
 *
 */
public abstract class Node implements Runnable {

    private NodeAction nodeAction;

    /***
     * 事件运行的接口，Node的执行运行代码由这个执行
     */
    public abstract void run();

    final public void setNodeAction(NodeAction nodeAction) {
        this.nodeAction = nodeAction;
    }

    final public NodeAction getNodeAction() {
        return nodeAction;
    }

}
